package zhoufu.sz.sanxiao_check.ui.basic;

import android.os.Bundle;
import android.support.annotation.Nullable;
import zhoufu.sz.sanxiao_check.models.StreetInfoModel;
import zhoufu.sz.sanxiao_check.ui.BaseActivity;

/**
 * User:RCP
 * email:ruancaipu@gmail.com
 * Date:2016/7/25
 */
public abstract class BaseMsgActivity extends BaseActivity
{
    public StreetInfoModel mInfoModel;

    @Override protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        mInfoModel = getIntent().getParcelableExtra("StreetInfoModel");
        if ( savedInstanceState != null )
        {
            mInfoModel = savedInstanceState.getParcelable("StreetInfoModel");
        }
        super.onCreate(savedInstanceState);
    }

    @Override protected void onSaveInstanceState(Bundle outState)
    {
        super.onSaveInstanceState(outState);
        outState.putParcelable("StreetInfoModel", mInfoModel);
    }
}
